//
//  MKUIThemePickerBase.h
//  MKUI
//
//  Created by 苏尚进 on 2021/3/20.
//  Copyright © 2021 moon. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MKUIThemePickerProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface MKUIThemePickerBase : NSObject<MKUIThemePickerProtocol>
@property(nonatomic,strong,nullable) NSArray<id<MKUIThemeElementProtocol>> * elements;//主题元素
@property(nonatomic,assign) SEL objSelector;
- (instancetype)initWithObjSelector:(SEL)objSelector;
@end

NS_ASSUME_NONNULL_END

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface MKUIThemePickerBase (Element)
+ (nullable UIColor *)themeUIColorWithElement:(id<MKUIThemeElementProtocol>)element;
+ (nullable UIImage *)themeUIImageWithElement:(id<MKUIThemeElementProtocol>)element;
+ (CGColorRef)themeCGColorRefWithElement:(id<MKUIThemeElementProtocol>)element;
+ (NSInteger)themeNSIntegerWithElement:(id<MKUIThemeElementProtocol>)element;
+ (CGFloat)themeCGFloatWithElement:(id<MKUIThemeElementProtocol>)element;
+ (CGSize)themeCGSizeWithElement:(id<MKUIThemeElementProtocol>)element;
@end

NS_ASSUME_NONNULL_END
